| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { ValueAccessorBase } from './../abstract/ValueAccessorBase'; |
||
| 23 | |||
| 24 | @Component({ |
||
| 25 | selector: 'sign-item', |
||
| 26 | templateUrl: './sign-item.component.pug', |
||
| 27 | styleUrls: ['./sign-item.component.scss'], |
||
| 28 | providers: [ |
||
| 29 | { provide: NG_VALUE_ACCESSOR, useExisting: SignItemComponent, multi: true } |
||
| 30 | ], |
||
| 31 | }) |
||
| 32 | export class SignItemComponent extends ValueAccessorBase<string> implements OnInit { |
||
| 33 | |||
| 34 | constructor() { |
||
| 35 | super(); |
||
| 36 | } |
||
| 37 | |||
| 38 | ngOnInit() { |
||
| 39 | |||
| 40 | } |
||
| 41 | |||
| 42 | @Input() |
||
| 43 | public disabled: boolean = false; |
||
| 44 | |||
| 45 | @Input() |
||
| 46 | public data: any = { x: 0, y: 0, text: 0 }; |
||
| 47 | |||
| 48 | @Output() |
||
| 49 | public remove: EventEmitter<boolean> = new EventEmitter(); |
||
| 50 | |||
| 51 | remListItem() { |
||
| 52 | this.remove.emit(true); |
||
| 53 | } |
||
| 55 |